package com.example.demo.repository;

import com.example.demo.dataobject.User;
import org.springframework.data.jpa.repository.JpaRepository;


public interface UserRespository extends JpaRepository<User,Integer> {

    User findByUsername (String username);
    User findByUsernameAndPassword(String username,String password);

}
